<template>
  <div style="width:100%;height:100%">
    <div v-if="showNav"  style="width:100%;height:100%">
      <router-view v-if="showNav"></router-view>
    </div>
    <div v-else style="width:100%;height:100%">
      <template>
           <home-page ref="page"></home-page>
      </template>
    </div>
  </div>
</template>

<script>
  import HomePage from './components/HomePage'
export default {
  name: 'App',
  components: {
    HomePage
  },
  data() {
    return {}
  },
  computed: {
    showNav() {
     let innerStore = this.$store.state.ui.isLoading;

     return innerStore;
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
